﻿using Godot;

namespace GoGameClient.script.entity;

public class RoleEntity
{
    public long Id { get; set; } //角色id
    public string RoleName { get; set; } //角色名称
    public string Model { get; set; } //模型名称
    public string Sect { get; set; } //门派
    public string Sex { get; set; } //性别
    public string Race { get; set; } //种族
    public int Popularity { get; set; } //人气
    public int MapId { get; set; } //地图id
    public int VariantX { get; set; } //坐标x
    public int VariantY { get; set; } //坐标y
    public long Imprest { get; set; } //储备金
    public long Deposit { get; set; } //存款
    public int Level { get; set; } //等级
    public long Exp { get; set; } //经验
    public long Gold { get; set; } //金币
    public int Vitality { get; set; } //活力
    public int PhysicalStrength { get; set; } //体力
    public int Hp { get; set; } //血量
    public int MaxHp { get; set; } //血量
    public int Blood { get; set; } //气血
    public int Mp { get; set; } //魔法值
    public int MaxMp { get; set; } //血量
    public int Anger { get; set; } //怒气
    public long MaxExp { get; set; } //升级经验

    public Texture2D GetAvator()
    {
        return GD.Load<Texture2D>($"res://resources/role/{Model}/图片/头像.png");
    }
}